<?php
class Home extends CI_Controller{
	
	public function index()
	{
		$this->load->view('home');
	}
	
	public function about()
	{
		$this->load->view('about');
	}
	public function profile()
	{
		$this->load->view('profile');
	}
	
	public function contact()
	{
		$this->load->view('contact');
	}
	public function photo()
	{
		$this->load->database();
		$data = $this->db->query("select * from message where MsgType = 'video' and IsOk=1 order by id desc")->result_array();
		$this->load->view('photo',array('list'=>$data));
	}
}